<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for( let i = 1 ; i < 1000 ; i ++ ){
            for( let j = i ; j < 1000 ; j ++ ){
                for( let a = j ; a < 1000 ; a ++ ){
                    if( a + i + j == 1000 && Math.pow(i,2) + Math.pow(j,2) == Math.pow(a,2) ){
                        console.log( i , j , a );
                        console.log( Math.pow(i,2) , Math.pow(j,2) , Math.pow(a,2) );
                    }
                }
            }
        }
        // 200 375 425
        // 40000 140625 180625
    </script>
</body>
</html>